Cannot install kernel 您所在的位置:网站首页 manjaro-chroot -a Cannot install kernel

Cannot install kernel

2023-11-07 09:26| 来源: 网络整理| 查看: 265

After messing with my system, I accidentally removed all of my kernel(s) from my manjaro installation.

I figured, not a problem, I’ll boot a live cd, chroot into my install and then use mhwd-kernel to install one, however:

(base) [manjaro-gnome local]# mhwd-kernel -li Currently running: 5.15.16-1-MANJARO (linux515) The following kernels are installed in your system: (base) [manjaro-gnome local]# mhwd-kernel -l available kernels: * linux414 * linux419 * linux44 * linux49 * linux510 * linux515 * linux516 * linux517 * linux54 * linux515-rt * linux516-rt (base) [manjaro-gnome local]# mhwd-kernel -i linux510 :: Synchronizing package databases... core 168.9 KiB 923 KiB/s 00:00 [##################################] 100% extra 1901.2 KiB 3.76 MiB/s 00:00 [##################################] 100% community 7.0 MiB 7.64 MiB/s 00:01 [##################################] 100% multilib 174.0 KiB 3.95 MiB/s 00:00 [##################################] 100% error: no targets specified (use -h for help)

Why are no targets specified? I thought this was all you needed to install a kernel.

Obligatory inxi output (run outside of manjaro-chroot):

   ~  inxi -Fxxxza --no-host  ✔ System: Kernel: 5.15.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 parameters: BOOT_IMAGE=/boot/vmlinuz-x86_64 lang=en_GB keytable=gb tz=UTC misobasedir=manjaro misolabel=MANJARO_GNOME_2122 quiet systemd.show_status=1 driver=nonfree nouveau.modeset=0 i915.modeset=1 radeon.modeset=1 Desktop: GNOME 41.3 tk: GTK 3.24.31 wm: gnome-shell dm: GDM 41.3 Distro: Manjaro Linux base: Arch Linux Machine: Type: Desktop Mobo: Micro-Star model: MAG B550M MORTAR WIFI (MS-7C94) v: 1.0 serial: UEFI: American Megatrends LLC. v: 1.50 date: 01/13/2021 CPU: Info: model: AMD Ryzen 7 5800X bits: 64 type: MT MCP arch: Zen 3 family: 0x19 (25) model-id: 0x21 (33) stepping: 0 microcode: 0xA201009 Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache: L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 32 MiB desc: 1x32 MiB Speed (MHz): avg: 3015 high: 3600 min/max: 2200/4850 boost: enabled scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 3125 2: 2877 3: 2872 4: 2871 5: 2879 6: 2878 7: 2876 8: 3598 9: 3229 10: 2879 11: 2877 12: 2880 13: 2875 14: 2876 15: 3061 16: 3600 bogomips: 121658 Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm Vulnerabilities: Type: itlb_multihit status: Not affected Type: l1tf status: Not affected Type: mds status: Not affected Type: meltdown status: Not affected Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, IBRS_FW, STIBP: always-on, RSB filling Type: srbds status: Not affected Type: tsx_async_abort status: Not affected Graphics: Device-1: NVIDIA GM204 [GeForce GTX 970] vendor: Micro-Star MSI driver: nvidia v: 495.46 alternate: nouveau,nvidia_drm bus-ID: 2b:00.0 chip-ID: 10de:13c2 class-ID: 0300 Device-2: Logitech C920 HD Pro Webcam type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-5:2 chip-ID: 046d:0892 class-ID: 0102 serial: Display: x11 server: X.org 1.21.1.3 compositor: gnome-shell driver: loaded: nvidia resolution: Message: Unable to show advanced data. Required tool glxinfo missing. Audio: Device-1: NVIDIA GM204 High Definition Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus-ID: 2b:00.1 chip-ID: 10de:0fbb class-ID: 0403 Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus-ID: 2d:00.4 chip-ID: 1022:1487 class-ID: 0403 Device-3: Logitech C920 HD Pro Webcam type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-5:2 chip-ID: 046d:0892 class-ID: 0102 serial: Sound Server-1: ALSA v: k5.15.16-1-MANJARO running: yes Sound Server-2: JACK v: 1.9.20 running: no Sound Server-3: PulseAudio v: 15.0 running: yes Sound Server-4: PipeWire v: 0.3.43 running: no Network: Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 29:00.0 chip-ID: 8086:2723 class-ID: 0280 IF: wlo1 state: up mac: Device-2: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169 v: kernel port: f000 bus-ID: 2a:00.0 chip-ID: 10ec:8125 class-ID: 0200 IF: enp42s0 state: down mac: Drives: Local Storage: total: 3.67 TiB used: 250.51 GiB (6.7%) SMART Message: Unable to run smartctl. Root privileges required. ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO Plus 1TB size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: rev: 2B2QEXM7 temp: 46.9 C scheme: GPT ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD10EZEX-60WN4A0 size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: rev: 1A01 scheme: GPT ID-3: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT1000MX500SSD1 size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: rev: 032 scheme: GPT ID-4: /dev/sdc maj-min: 8:32 vendor: Western Digital model: WD10EZEX-00BN5A0 size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: rev: 1A01 scheme: GPT ID-5: /dev/sdd maj-min: 8:48 type: USB vendor: SanDisk model: Ultra Fit size: 28.64 GiB block-size: physical: 512 B logical: 512 B type: N/A serial: rev: 1.00 scheme: MBR SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure? Partition: Message: No partition data found. Swap: Alert: No swap data was found. Sensors: System Temperatures: cpu: N/A mobo: N/A gpu: nvidia temp: 56 C Fan Speeds (RPM): N/A gpu: nvidia fan: 0% Info: Processes: 376 Uptime: 36m wakeups: 0 Memory: 31.34 GiB used: 3.93 GiB (12.6%) Init: systemd v: 250 tool: systemctl Compilers: gcc: N/A Packages: pacman: 1199 lib: 300 flatpak: 0 Shell: Zsh v: 5.8 running-in: gnome-terminal inxi: 3.3.12

Other possibly relevant information:

os-prober doesn’t find my windows install on /dev/nvme01p3 My non-free nvidia driver appears to not be working: (base) [manjaro-gnome local]# journalctl --catalog --priority=3 --boot=-1 Feb 18 17:52:56 john-ms7c94 systemd-modules-load[355]: Failed to find module 'nvidia' Feb 18 17:52:56 john-ms7c94 systemd-modules-load[355]: Failed to find module 'nvidia-drm' Feb 18 17:52:56 john-ms7c94 systemd-modules-load[355]: Failed to find module 'nvidia-uvm' Feb 18 17:52:56 john-ms7c94 kernel: sp5100-tco sp5100-tco: Watchdog hardware is disabled Feb 18 17:53:07 john-ms7c94 gdm-launch-environment][1017]: GLib-GObject: g_object_unref: assertion 'G_> Feb 18 17:53:07 john-ms7c94 gdm-launch-environment][1037]: GLib-GObject: g_object_unref: assertion 'G_> Feb 18 17:53:07 john-ms7c94 gdm-launch-environment][1048]: GLib-GObject: g_object_unref: assertion 'G_> Feb 18 17:53:07 john-ms7c94 gdm-launch-environment][1074]: GLib-GObject: g_object_unref: assertion 'G_> Feb 18 17:53:07 john-ms7c94 gdm-launch-environment][1145]: GLib-GObject: g_object_unref: assertion 'G_> Feb 18 17:53:07 john-ms7c94 gdm-launch-environment][1173]: GLib-GObject: g_object_unref: assertion 'G_> Feb 18 17:54:27 john-ms7c94 gdm-launch-environment][2042]: GLib-GObject: g_object_unref: assertion 'G_> Feb 18 17:57:39 john-ms7c94 gdm-launch-environment][2156]: GLib-GObject: g_object_unref: assertion 'G_>

Which I tried to solve with a chroot'ed mhwd, but that didn’t work.

(base) [manjaro-gnome local]# mhwd -a pci nonfree 0300 --force > Using config 'video-nvidia' for device: 0000:2b:00.0 (0300:10de:13c2) Display controller nVidia Corporation GM204 [GeForce GTX 970] > Removing video-nvidia... Sourcing /etc/mhwd-x86_64.conf Has lib32 support: true Sourcing /var/lib/mhwd/local/pci/video-nvidia/MHWDCONFIG Processing classid: 0300 Sourcing /var/lib/mhwd/scripts/include/0300 Processing classid: 0302 checking dependencies... :: ffmpeg optionally requires nvidia-utils: Nvidia NVDEC/NVENC support :: gst-plugins-bad optionally requires nvidia-utils: nvcodec plugin :: lib32-vulkan-icd-loader optionally requires lib32-vulkan-driver: packaged vulkan driver :: steam-manjaro optionally requires vulkan-driver: packaged vulkan driver :: steam-manjaro optionally requires lib32-vulkan-driver: packaged vulkan driver (32bit) :: vulkan-icd-loader optionally requires vulkan-driver: packaged vulkan driver warning: dependency cycle detected: warning: eglexternalplatform will be removed after its nvidia-utils dependency Packages (5) egl-wayland-2:1.1.9+r3+g582b2d3-1 eglexternalplatform-1.1-2 lib32-nvidia-utils-510.47.03-1 libxnvctrl-510.47.03-1 nvidia-utils-510.47.03-4 Total Removed Size: 556.47 MiB :: Do you want to remove these packages? [Y/n] :: Processing package changes... removing lib32-nvidia-utils... xorg configuration symlink valid... removing nvidia-utils... xorg configuration symlink valid... removing egl-wayland... removing eglexternalplatform... removing libxnvctrl... :: Running post-transaction hooks... (1/5) Reloading system manager configuration... Skipped: Running in chroot. (2/5) Reloading device manager configuration... Skipped: Running in chroot. (3/5) Arming ConditionNeedsUpdate... (4/5) Reloading system bus configuration... Skipped: Running in chroot. (5/5) Updating the desktop file MIME type cache... '/etc/X11/xorg.conf.d/90-mhwd.conf' symlink is invalid! Removing it... > Successfully removed video-nvidia > Installing video-nvidia... Sourcing /etc/mhwd-x86_64.conf Has lib32 support: true Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia/MHWDCONFIG Processing classid: 0300 Sourcing /var/lib/mhwd/scripts/include/0300 Processing classid: 0302 :: Synchronizing package databases... core downloading... extra downloading... community downloading... multilib downloading... resolving dependencies... looking for conflicting packages... warning: dependency cycle detected: warning: eglexternalplatform will be installed before its nvidia-utils dependency Packages (5) egl-wayland-2:1.1.9+r3+g582b2d3-1 eglexternalplatform-1.1-2 lib32-nvidia-utils-510.47.03-1 libxnvctrl-510.47.03-1 nvidia-utils-510.47.03-4 Total Installed Size: 556.47 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... nvidia-utils-510.47.03-4-x86_64 downloading... lib32-nvidia-utils-510.47.03-1-x86_64 downloading... libxnvctrl-510.47.03-1-x86_64 downloading... egl-wayland-2:1.1.9+r3+g582b2d3-1-x86_64 downloading... eglexternalplatform-1.1-2-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... checking available disk space... :: Processing package changes... installing eglexternalplatform... installing egl-wayland... installing libxnvctrl... installing nvidia-utils... ==> If you run into trouble with CUDA not being available, run nvidia-modprobe first. Optional dependencies for nvidia-utils xorg-server-devel: nvidia-xconfig opencl-nvidia: OpenCL support [installed] installing lib32-nvidia-utils... Optional dependencies for lib32-nvidia-utils lib32-opencl-nvidia :: Running post-transaction hooks... (1/6) Creating system user accounts... (2/6) Reloading system manager configuration... Skipped: Running in chroot. (3/6) Reloading device manager configuration... Skipped: Running in chroot. (4/6) Arming ConditionNeedsUpdate... (5/6) Reloading system bus configuration... Skipped: Running in chroot. (6/6) Updating the desktop file MIME type cache... nvidia-utils: install reason has been set to 'explicitly installed' libxnvctrl: install reason has been set to 'explicitly installed' lib32-nvidia-utils: install reason has been set to 'explicitly installed' xorg configuration file: '/etc/X11/mhwd.d/nvidia.conf' > Successfully installed video-nvidia

I’ve tried updating with sudo pacman -Syyu but there is nothing to do.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有